/**
 * 
 */
package com.taobao.wolfwolf.hibernate.dao;

import java.util.List;

import com.taobao.wolfwolf.hibernate.pojo.Logistics;

/**
 * @author Tux
 *
 * 创建时间: 2011-6-10 下午02:40:34
 */
public interface LogisticsDao extends BaseDao {
	/**
	 * 按id来查找
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Logistics findById(int id) throws Exception;
	
	/**
	 * 按名称来查找
	 * @param name
	 * @return
	 */
	public List<Logistics> findByName(String name) throws Exception;
	
	/**
	 * 查找全部
	 * @return
	 */
	public List<Logistics> findAll() throws Exception;
	
	
	/**
	 * 分页查找
	 * @return
	 */
	public List<Logistics> paging(int page, int limit) throws Exception;
	
	/**
	 * 获取全部客户的数量
	 * @return
	 */
	public long getTotal() throws Exception;
}
